package com.lzy.article;

import com.rule.MyRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;


@SpringBootApplication
@MapperScan(basePackages = "com.lzy.article.mapper")
@ComponentScan(basePackages = {"com.lzy","idworker"})
@EnableEurekaClient
@EnableFeignClients({"com.lzy"})
@EnableHystrix  //开启服务接口调用降级
public class Application {

      public static void main(String[] args) {
       SpringApplication.run(Application.class,args);
      }
}
